<template>
	<view @click="handleNum">
		测试公共组件
		{{name}}
	</view>
</template>

<script>
	export default {
		name:"test-my-comp",
		props:["name"],
		data() {
			return {
				
			};
		},
		created() {
			// console.log("公共组件 的 created");
		},
		methods: {
			handleNum() {
				this.$emit("onNum", 11)
			}
		},
	}
</script>

<style lang="scss">

</style>
